package com.jiedeng.dao;

import com.jiedeng.model.Task;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 覃远龙
 * @ClassName: ITaskRepository
 * @Description:
 * @date 2017/8/4 11:00
 */
public interface ITaskRepository extends JpaRepository<Task, String> {
    List<Task> findAll(Specification<Task> specification);
    List<Task> findByProjectIdOrderByCreateTimeAsc(long projectId);
}
